#include <stdio.h>

int main()
{
    int a = 0;
    int b = 0;
    int c = 0;
    printf("请输入两个整数->");
    scanf("%d %d", &a, &b);
    c = a ^ b;
    int temp = c;
    int count = 0;
    int i = 0;
    int j = 1;
    for(i = 0; i < 32; i++)
    {
        c = c & ~(j << i);
        if (c != temp)
        {
            count++;
        }
        c = temp;
    }
    printf("%d", count);
    return 0;
}